<div class="box grid_12">
	<div class="box-head">
		<h2>Thêm App</h2>
	</div>
	<div class="box-content ">
		<?php foreach($apps as $app):?>
		  <?php echo form_open_multipart('user/update_app/'.$app->id); ?>

                         <div class="form-row">
                            <div class="form-label">Tên App</div>
                            <div class="form-item"><input type="text" name="appname" value="<?php echo $app->app_name?>" /></div>
                        </div>
                         <div class="form-row">
                            <div class="form-label">LInk</div>
                            <div class="form-item"><input type="text" name="applink" value="<?php echo $app->app_link?>" /></div>
                        </div>
                        <div class="form-row">
                            <div class="form-label">Ngày cập nhật</div>
                            <div class="form-item"><input type="text" value="<?php echo date("Y-m-d h:s:m")?>" name="datecreate" /></div>
                        </div>
                         <div class="form-row">
                            <div class="form-label">Ngày tạo</div>
                            <div class="form-item"><input type="text" value="<?php echo date("Y-m-d h:s:m")?>" name="datecreate" /></div>
                        </div>
                        <div class="form-row">

                            <div class="form-item">
                                    <input name="active" type="radio" <?php if($app->active == 0):?> checked <?php endif;?>  value="0"/>
                        <span class="lbl"> Không kích hoạt</span>
                        <input name="active" type="radio" value="1"   <?php if($app->active == 1):?> checked <?php endif;?>/>
                        <span class="lbl"> Kích hoạt</span>
                             </div>
                            </div>
                            <div class="form-row"><br/></div>
                        <div class="form-row">
                            <div class="form-label"> </div>
                            <div class="form-item"><input type="submit" name="submit" value="Cập nhật" /></div>
                        </div>
                        <?php echo form_close(); ?>
                        <?php endforeach;?>
	</div>
</div>
